]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Update visibily when gesture drag begins
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 10 Jul 2020 13:41:09 +0000 (10:41 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Fri, 10 Jul 2020 14:14:12 +0000 (11:14 -0300)
When dragging the workspaces through the swipe gesture, all
workspaces must be visible. WorkspacesView's _updateVisibility()
method special-cases this and ensures that.

However, this method is only called when (1) going to the active
workspace, and (2) when the gesture ends. That means, if there
is any workspace hidden by the time a gesture starts, it is never
shown!

Call _updateVisibility() on startTouchGesture() as well.

Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2969

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1360

js/ui/workspacesView.js

index b16c1343790a4778bbd5d7d4f16fc0f9033ad8fd..a757badbbfba5d55bb1123eecf6e3af202ca6c1e 100644 (file)
@@ -241,6 +241,8 @@ class WorkspacesView extends WorkspacesViewBase {
 
     startTouchGesture() {
         this._gestureActive = true;
+
+        this._updateVisibility();
     }
 
     endTouchGesture() {